import 'package:flutter/material.dart';

class InfoContentItem extends StatelessWidget {
  final String title;
  final String detail;
  final double titleWidth;
  const InfoContentItem(this.title, this.detail,
      {super.key, this.titleWidth = 80});
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.fromLTRB(0, 5, 0, 5),
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          SizedBox(
            width: titleWidth,
            child: Text(
              title,
              style: const TextStyle(
                color: Color(0xFF6C6C6C),
                // color: Colors.red,
                fontSize: 16,
              ),
            ),
          ),
          Expanded(
            child: Text(
              detail,
              style: const TextStyle(
                color: Color(0xFF101010),
                fontSize: 16,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
